home *** CD-ROM | disk | FTP | other *** search
- Path: news.datasrv.co.il!usenet
- From: dmitry@enigma.co.il (Dmitry A. Davidovich)
- Newsgroups: comp.lang.c++
- Subject: C++ Gurus! Is it correct?
- Date: Thu, 01 Feb 1996 17:10:45 GMT
- Organization: Enigma Inc.
- Message-ID: <4eqvtg$cg5@israel-info.datasrv.co.il>
- NNTP-Posting-Host: dmitry.enigma.co.il
- X-Newsreader: Forte Free Agent 1.0.82
-
- Is next code is correct from point of view of pure C++ ?
-
- class A
- {
- };
-
- class B
- {
- };
-
- class C : public A, public B
- {
- };
-
- A* pA = new C;
- B* pB = new C;
-
- delete pA;
- delete pB;
-
- Please, mail me copy of response.
-
- +++++++++++++++++++++++++++++++++++++++++
- Dmitry Davidovich
- CS Tel Aviv University
- dmitry@enigma.co.il
- ddmitry@libra.math.tau.ac.il
- +++++++++++++++++++++++++++++++++++++++++
-
-